package com.bianmaba.dc.supports.services;

import com.bianmaba.dc.bean.CollectionData;
import com.bianmaba.dc.bean.CollectionRequest;

/**
 * 采集服务器抽象接口，具体采集器需要实现此接口
 * <pre>
 *     以下3个函数同一采集器重写要实现一个函数：
 * collectionDemandStatistics:实现需求数据统计结果采集
 * collectionWorkforceStatistics:实现人员数据统计结果采集
 * collectionProjectStatistics:实现项目数据统计结果采集
 *     以下函数为原数据采集函数，无源数据采集不需要重写
 * collectionSourceData:实现以上相关源数据采集
 * </pre>
 */
public abstract class AbstractCollectionService {

    public abstract CollectionData.Table collectionDemandStatistics(CollectionRequest request) throws Exception;

    public abstract CollectionData.Table collectionWorkforceStatistics(CollectionRequest request) throws Exception;


    public abstract CollectionData.Table collectionProjectStatistics(CollectionRequest request) throws Exception;

    public abstract CollectionData.Table collectionSourceData(CollectionRequest request) throws Exception;
}
